<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/common/common.css" />
		<link rel="stylesheet" type="text/css" href="css/visitors.css" />
	</head>

	<body>
		<div class="web">
			<header>
				<div class="img"><a href="../index/index.html"><img src="img/icon_back.png"/></a></div>
				<div class="nav">
					<span><a href="visitors.html">访客</a></span>
					<span><a href="order.html">订单</a></span>
					<span class="active"><a href="revenue.html">营收</a></span>
				</div>
			</header>

			<section>
				<div class="date">
					<ul class="clearfix">
						<li class="fl">
							<span class="active">7天</span>
						</li>
						<li class="fl">
							<span>30天</span>
						</li>
						<li class="fl">
							<span>90天</span>
						</li>
					</ul>
				</div>
				<div class="img">
					<img src="img/revenue.jpg" />
				</div>
				<div class="num clearfix">
					<div class="point left fl">
						<h5>257.50</h5>
						<p>总销量</p>
					</div>
					<div class="point right fl">
						<h5>257.50</h5>
						<p>分销商品</p>
					</div>
				</div>
				<div class="hr1">

				</div>
				<div class="management m clearfix">
					<p class="fl">营收明细</p>
					<a href="revenue_detail.html">&gt;</a>
				</div>
				<div class="management m clearfix">
					<p class="fl">营收提现</p>
					<a href="">&gt;</a>
				</div>
				<div class="hr2">
					<p>注:&nbsp;&nbsp;营收数据仅截至到昨日，为包含今日数据</p>
				</div>
			</section>
		</div>

		<script>
			document.body.style.height = window.innerHeight + "px";

			/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth / 640) + 'px';
				//字体大小   =1个rem单位表示多少个像素*(设备的宽度 /设计宽度)
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
		</script>

	</body>

</html>